package com.yihaodian.search;

/**
 * Listener to handler asynchronous search response.
 * @author zhaowei1
 *
 * @param <Response>
 */
public interface SearchListener<Response> {
	/**
	 * Handle success search result.
	 * @param result
	 */
	public void onResponse(Response result);
	
	/**
	 * Handle failed search.
	 * @param e
	 */
	public void onFailure(Throwable e);
}
